package com.huawei.appgallery.push.service;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.huawei.hms.push.HmsMessageService;
import com.huawei.hms.push.RemoteMessage;
import o.ctw;
import o.cud;
import o.ContentManager;

public class AppGalleryHmsService extends HmsMessageService {
    public void onNewToken(String str) {
        super.onNewToken(str);
        ctw.ॱ(str);
    }

    public void onMessageReceived(RemoteMessage remoteMessage) {
        super.onMessageReceived(remoteMessage);
        String data = remoteMessage.getData();
        Context ˋ = ContentManager.getInstant().getContext();
        Intent intent = new Intent();
        intent.setAction("android.huawei.appmarket.pushdeal.onmessagenew");
        intent.setPackage(ˋ.getPackageName());
        Bundle bundle = new Bundle();
        bundle.putString("pushMsg", data);
        intent.putExtras(bundle);
        ˋ.sendBroadcast(intent, cud.ˊ);
    }
}
